package com.kehutong.payfees.entity;

import java.math.BigDecimal;

import com.kehutong.common.entity.DataEntity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;

import com.kehutong.payfees.enums.UserInstrumentMaxRead;

/**
 * 入户表
 */
@Table(value = "t_charge_user_instrument", comment="入户表", multi = true,isSyncGenerateTable = true)
public class ChargeUserInstrument extends DataEntity {
    private static final long serialVersionUID = -4211427979366583296L;

    protected ChargeUserInstrument(String id) {
        super(id);
    }

    @Column(comment = "小区编号")
    private String communityNo;

    @Column(comment = "仪表类型id")
    private String instrumentTypeId;

    @Column(comment = "房屋id")
    private String houseId;

    @Column(comment = "客户姓名")
    private String contactName;

    @Column(comment = "仪表编号")
    private String instrumentNo;

    @Column(comment = "仪表倍率")
    private BigDecimal ratio;

    @Column(comment = "最大读数")
    private UserInstrumentMaxRead maxRead;

    @Column(comment = "初始/最近读数")
    private BigDecimal lateRead;

    @Column(comment = "读数日期")
    private String readDate;

    @Column(comment = "是否抄表")
    private boolean copyInstrument;

    @Column(comment = "计费标准id")
    private String standardId;

    @Column(comment = "逻辑删除")
    private boolean deleted;

    @UnSave
    private String houseInfo;

    @UnSave
    private String buildNo;

    @UnSave
    private String buildName;

    @UnSave
    private String houseName;


    public String getCommunityNo() {
        return communityNo;
    }

    public void setCommunityNo(String communityNo) {
        this.communityNo = communityNo;
    }

    public String getInstrumentTypeId() {
        return instrumentTypeId;
    }

    public void setInstrumentTypeId(String instrumentTypeId) {
        this.instrumentTypeId = instrumentTypeId;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public String getInstrumentNo() {
        return instrumentNo;
    }

    public void setInstrumentNo(String instrumentNo) {
        this.instrumentNo = instrumentNo;
    }

    public BigDecimal getRatio() {
        return ratio;
    }

    public void setRatio(BigDecimal ratio) {
        this.ratio = ratio;
    }

    public UserInstrumentMaxRead getMaxRead() {
        return maxRead;
    }

    public void setMaxRead(UserInstrumentMaxRead maxRead) {
        this.maxRead = maxRead;
    }

    public BigDecimal getLateRead() {
        return lateRead;
    }

    public void setLateRead(BigDecimal lateRead) {
        this.lateRead = lateRead;
    }

    public String getReadDate() {
        return readDate;
    }

    public void setReadDate(String readDate) {
        this.readDate = readDate;
    }

    public boolean isCopyInstrument() {
        return copyInstrument;
    }

    public void setCopyInstrument(boolean copyInstrument) {
        this.copyInstrument = copyInstrument;
    }

    public String getStandardId() {
        return standardId;
    }

    public void setStandardId(String standardId) {
        this.standardId = standardId;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getHouseInfo() {
        return houseInfo;
    }

    public void setHouseInfo(String houseInfo) {
        this.houseInfo = houseInfo;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getBuildNo() {
        return buildNo;
    }

    public void setBuildNo(String buildNo) {
        this.buildNo = buildNo;
    }

    public String getBuildName() {
        return buildName;
    }

    public void setBuildName(String buildName) {
        this.buildName = buildName;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }
}
